﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="avoct.aspx.cs" Inherits="AVO.Layouts.AVO.avoct" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <link href="styles.css" rel="Stylesheet" type="text/css" />
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div>
        <div class="fields">
            <SharePoint:MenuTemplate runat="server" ID="GridMenuTemplate">
                <SharePoint:MenuItemTemplate
                    ID="fieldsGridMenuTemplateEdit"
                    runat="server"
                    Text="Edit Visibility Script"/>
            </SharePoint:MenuTemplate>
            <SharePoint:SPGridView ID="fieldsGrid" runat="server" AutoGenerateColumns="false" GroupField="ContentType" GroupFieldDisplayName="Content Type" AllowGrouping="true" AllowGroupCollapse="true" EnableViewState="false">
                <Columns>
                    <SharePoint:SPMenuField HeaderText="Title" TextFields="Title" TokenNameAndValueFields="TITLE=Guid" MenuTemplateId="GridMenuTemplate"/>
                    <SharePoint:SPBoundField HeaderText="Enabled" DataField="Enabled" />
                    <SharePoint:SPBoundField HeaderText="Read Only" DataField="CTReadOnly" />
                    <SharePoint:SPBoundField HeaderText="Required" DataField="CTRequired" />
                    <SharePoint:SPBoundField HeaderText="New Form" DataField="CTSINF" />
                    <SharePoint:SPBoundField HeaderText="Edit Form" DataField="CTSIEF" />
                    <SharePoint:SPBoundField HeaderText="Display Form" DataField="CTSIDF" />
                </Columns>
            </SharePoint:SPGridView>
        </div>
        <div class="ms-partline" />
        <div class="actions">
            <asp:Button runat="server" PostBackUrl="" ID="btnEnable" Text="Enable" OnClick="btnEnable_Click" CssClass="ms-ButtonHeightWidth" />
            <asp:Button runat="server" PostBackUrl="" ID="btnDisable" Text="Disable" OnClick="btnDisable_Click" CssClass="ms-ButtonHeightWidth" />
        </div>
    </div>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Advanced Fields Visibility Settings
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
<%
	if (CurrentList != null)
	{
%>
		<a id=onetidListHlink HREF=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(CurrentList.DefaultViewUrl,true),Response.Output);%>><%SPHttpUtility.HtmlEncode(CurrentList.Title,Response.Output);%></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow1" runat="server" /> <a HREF=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode("/_layouts/listedit.aspx?List=" + CurrentList.ID.ToString(),true),Response.Output);%>> <SharePoint:FormattedStringWithListType ID="FormattedStringWithListType1" runat="server" String="<%$Resources:wss,listsettings_titleintitlearea%>" LowerCase="false" /></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow2" runat="server" />
<%
	}
	else
	{
%>
	   <a href="settings.aspx"><SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="<%$Resources:wss,settings_pagetitle%>" EncodeMethod="HtmlEncode"/></a>
       &#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow3" runat="server" /><SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" text="<%$Resources:wss,contentTypePageTitle%>" EncodeMethod='HtmlEncode'/>&#32;
       <SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow4" runat="server" />
<%
	}
%>
<%
    if (ContentTypeName != null)
	{
%>
	<%SPHttpUtility.HtmlEncode(ContentTypeName,Response.Output); %>
<%
	}
%>
&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow5" runat="server" />&#32;Advanced Fields Visibility

</asp:Content>
